package com.neuedu.service.impl;

import com.neuedu.mapper.EmpMapper;
import com.neuedu.po.Emp;
import com.neuedu.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpMapper mapper;

    @Override
    public List<Emp> getEmpList() {
        return mapper.getEmpList();
    }

    @Override
    public int editEmp(Emp emp) {
        return mapper.editEmp(emp);
    }

    @Override
    public int deleteEmp(Integer empno) {
        return mapper.deleteEmp(empno);
    }

    @Override
    public List<Emp> getEmpListByEname(String search) {
        return mapper.getEmpListByEname(search);
    }

    @Override
    public int insertEmp(Emp emp) {
        return mapper.insertEmp(emp);
    }


}
